<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
<h:head>
	<link href="../../css/component.css" rel="stylesheet" type="text/css" />
</h:head>

<ui:param name="bean" value="#{vipFightCoefficientConfigAction}" />
<h:body>
    <span class="pagetitle">VIP战斗力等级系数配置</span>
    <p:separator />
	<h:form id="fsearch">
        <p:growl id="growl" showDetail="true" sticky="false" life="1000" />
		
		<p:panel id="panel0" header="添加查询" style="margin-bottom:10px;">
			<p:dataTable id="dlist0" var="l" value="#{bean.entity}" resizableColumns="true" scrollable="true" paginator="false" paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rowsPerPageTemplate="15,30" rows="30" style="text-align:center;">
				<p:column headerText="VIP等级" styleClass="column">
					<h:inputText value="#{l.vipLevel}" />
				</p:column>
				<p:column headerText="VIP战斗力系数" styleClass="column" >
					<h:inputText value="#{l.vipCoefficient}" style="width:100%" />
				</p:column>
                <p:column headerText="描述" styleClass="column"  >
                    <h:inputText value="#{l.description}" style="width:100%" />
                </p:column>
				<p:column headerText="操作" styleClass="column">
					<p:commandButton value="添加" action="#{bean.add()}" update=":dform:panel1 :fsearch:growl" />
				</p:column>
			</p:dataTable>
   		</p:panel>
	</h:form>
	<br />

	<h:form id="dform">
        <p:growl id="growl2" showDetail="true" sticky="false" life="1000" />
			<p:panel id="panel1" header="结果展示" style="margin-bottom:10px;">
				<p:dataTable id="dlist" var="l" value="#{bean.list}" resizableColumns="true" paginator="true" scrollable="true" paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rowsPerPageTemplate="15,30" rows="30" style="text-align:center;">
                    <p:column headerText="VIP等级" styleClass="column">
                        <h:inputText value="#{l.vipLevel}" />
                    </p:column>
                    <p:column headerText="VIP战斗力系数" styleClass="column"  >
                        <h:inputText value="#{l.vipCoefficient}" style="width:100%" />
                    </p:column>
                    <p:column headerText="描述" styleClass="column"  >
                        <h:inputText value="#{l.description}" style="width:100%" />
                    </p:column>
					<p:column headerText="操作" styleClass="column">
						<p:commandButton value="修改" action="#{bean.modify(l)}" update=":dform"  />
						<p:commandButton value="删除" action="#{bean.delete(l.id)}" update=":dform"  />
					</p:column>
				</p:dataTable>
	   		</p:panel>
	</h:form>
</h:body>
</html>
